/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package di.persistence.dao.impl;

import di.persistence.dao.AreaDao;
import di.persistence.dao.DIHibernateDaoSupport;
import di.persistence.dao.PositionDao;
import di.persistence.entities.Area;
import di.persistence.entities.Position;
import di.persistence.entities.UserType;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Kilian Ito
 */
@Repository("AreaDao")
public class AreaDaoImpl extends DIHibernateDaoSupport implements AreaDao {

    @Override
    public void save(Area position) throws DataAccessException {
        getHibernateTemplate().save(position);
    }

    @Override
    public void update(Area position) throws DataAccessException  {
        getHibernateTemplate().update(position);
    }

    @Override
    public void delete(Area position) throws DataAccessException  {
        getHibernateTemplate().delete(position);
    }
 
}
